package cn.common.tool;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import cn.common.dao.BaseDao;

public class Query extends BaseDao {
    
	
	public ResultSet find(String sql) throws SQLException
	{
		
		Connection conn;
		ResultSet rs;
		PreparedStatement pstmt;
		
		conn = this.getConn();
		pstmt= conn.prepareStatement(sql);
		rs	 = pstmt.executeQuery(sql);
		
		return rs;
	}
}
